package org.hy.framework.hibernate.util.page;

import java.util.List;

public class PageModel<T> {  
    /**
     * 总记录数
     */
	private int total;  
	/*page中的数据*/
    private List<T> datas;
    /**
     * 页面记录大小
     */
    private int pageSize;
    /*页面的起始位置，即偏移量*/
    private int offset;  
      
    public int getPageSize() {  
        return pageSize;  
    }  
    public void setPageSize(int pageSize) {  
        this.pageSize = pageSize;  
    }  
    public int getOffset() {  
        return offset;  
    }  
    public void setOffset(int offset) {  
        this.offset = offset;  
    }  
    public int getTotal() {  
        return total;  
    }  
    public void setTotal(int total) {  
        this.total = total;  
    }  
    public List getDatas() {  
        return datas;  
    }  
    public void setDatas(List datas) {  
        this.datas = datas;  
    }  
}  